<ul style="">
  <?php $contents = Doctrine::getTable('Content')->doFetchArray(
            array(
                    'categoryId'=>$categoryId, 
                    'idO'=>$idO, 
                    'limit'=>(isset($limit) ? $limit : 3
                 )
        ));?>

  <?php foreach ($contents as $content):?>
    <!--<li style="text-align:center;border-bottom:1px dotted #888;padding:20px 0;background:url(dotted_line.gif)">-->
    <li style="float:left;text-align:center;border:0px dotted #888;padding:0 25px;background:url(/images/dotted_line_ver.gif) 99% 0 repeat-y">

        <?php echo image_tag("http://".$content['cover'], array('style'=>'max-width:180px;max-height:250px;margin:0 0 7px 0;','class'=>''));?>
        
        <br clear="all">
        
        <?php echo link_to($content['category_name'], 'content/branch3?categoryId='.$content['category_id'], array('class'=>'list-category', 'style'=>''));?>
        
        <br clear="all">

        <?php echo link_to($content['title'], 'content/leaf1?id='.$content['id'], array('class'=>'list-title', 'style'=>'line-height:18px;'));?>
        
        <br clear="all">
        
        <a href="<?php echo url_for('content/leaf1?id='.$content['id'])?>" class="list-more" style="color:#ff3322;font-weight:bold;">дэлгэрэнгүй &raquo;</a>
        
        <br clear="all">
    </li>
  <?php endforeach;?>

</ul>

